<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script>
    'use strict';
    // ES6出来的
    // 学生的成绩，学生的名字

/*    var name = ["tom","jack","js"];
    var score = [63,78,87];*/

    var map = new Map([['tom',67],['jack',78],['js',87]]); //此时是个二维数组
    var map1 = new Map();
    map1.set("yw",500);
    map1.set("yw1",200);
    map1.set("yw2",400);
    console.log(map1.size);
    console.log(map1);
    console.log(map1.get("yw"));
    var getValue = map.get("tom");//通过key获得value
    console.log(getValue);
    // alert(getValue);


    var set = new Set([[3,1,"1",3,"2",1],[1,2,3,4,5,9,7,8]]);
    var set1 = new Set([[3,1,"1",3,"2",1],[3,1,"1",3,"2",1]]);
    var set2 = new Set([3,1,"1",3,"2",1]);
    console.log(set);
    console.log(set1);
    console.log(set2);
    set.add(8);

    console.log(map);
    // 三维数组,一个里面专门放key，一个里面放value
     var map2 = new Map([[["v1","v2","v3"],[1,2,3]],[["vv1","vv2","vv3"],[1,2,3]],[["vvv1","vvv2","vvv3"],[1,2,3]]]);
     console.log(map2);




/*    new Map();

    new Set();*/
  </script>

</head>
<body>

</body>
</html>